/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Interface;

/**
 *
 * @author agnieszka
 */

 class ConnectorOut implements Runnable{

     public  Runtime rt;
     public  Process proces;

     Thread current_out;

    ConnectorOut() {

		// metoda statyczna currentThread() klasy Thread zwaca
		// referencję do bieżącego wątku
		current_out = Thread.currentThread();
		
	}
    
	public void run() 
	{

            try {

            rt = Runtime.getRuntime();
            proces = rt.exec("crafty-win32.exe");
           }

                catch (Exception err) {
                   System.out.println("Crafty executing problem");
                }
        }
}
